using System.Xml.Linq;
using OrbitOne.CRMLyncInfoDashboard.CRM.OrganizationData;

namespace OrbitOne.CRMLyncInfoDashboard.CRM
{
    public class SavedQueryModel
    {
        private readonly SavedQuery m_savedQuery;

        public SavedQueryModel(SavedQuery savedQuery)
        {
            m_savedQuery = savedQuery;
        }

        public XElement LayoutXml
        {
            get { return XElement.Parse(m_savedQuery.LayoutXml); }
        }
    }
}